package com.yuyou.tas.lesson.vo.req;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class ReqStudentAdd {

    @ApiModelProperty(value = "名字", required = true)
    @NotBlank(message = "名字不能为空")
    @Length(max=100,message="名字不能超过100个字符")
    private String name;

    @ApiModelProperty(value = "性别:0:未设置 1:男 2:女", required = true)
//    @NotNull(message = "性别不能为空")
    @Max(value=2,message="性别参数范围不正确")
    @Min(value=0,message="性别参数范围不正确")
    private Integer sex;

    @ApiModelProperty(value = "电话", required = true)
    @NotNull(message = "电话不能为空")
    @Length(max=20,message="名字不能超过20个字符")
    private String phoneNo;

    @ApiModelProperty(value = "年级", required = true)
//    @NotNull(message = "年级不能为空")
    private Long baseSectionId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getPhoneNo() {
		return phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public Long getBaseSectionId() {
		return baseSectionId;
	}

	public void setBaseSectionId(Long baseSectionId) {
		this.baseSectionId = baseSectionId;
	}

 
    
    
    

}
